<!DOCTYPE html><html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        
        <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no">
        <meta http-equiv="Blz-App-Path" content="/">        
        <meta name="robots" content="noodp" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
         
        <title>微软纸牌合集资源文件研究 - bihai.org-碧海奥格</title>
    

    
    <!-- JS Plugins -->

<script src="https://bihaiorg.gitee.io/plugins/jQuery/jquery.min.js"></script>

<script src="https://bihaiorg.gitee.io/plugins/bootstrap/bootstrap.min.js"></script>

<script src="https://bihaiorg.gitee.io/plugins/slick/slick.min.js"></script>

<script src="https://bihaiorg.gitee.io/plugins/headroom/headroom.js"></script>

<script src="https://bihaiorg.gitee.io/"></script>

<script src="https://bihaiorg.gitee.io/plugins/masonry/masonry.js"></script>

<script src="https://bihaiorg.gitee.io/plugins/reading-time/readingTime.min.js"></script>

<script src="https://bihaiorg.gitee.io/plugins/smooth-scroll/smooth-scroll.js"></script>

<script src="https://bihaiorg.gitee.io/plugins/search/fuse.min.js"></script>

<script src="https://bihaiorg.gitee.io/plugins/search/mark.js"></script>

<script src="https://bihaiorg.gitee.io/plugins/search/search.js"></script>


        <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
        <script src="//cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js"></script>
        <script src="//cdnjs.cloudflare.com/ajax/libs/Counter-Up/1.0/jquery.counterup.min.js"></script>
        <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-parallax/1.1.3/jquery-parallax.js"></script>
<!-- plugins -->
  
  <link rel="stylesheet" href="https://bihaiorg.gitee.io/plugins/bootstrap/bootstrap.min.css ">
  
  <link rel="stylesheet" href="https://bihaiorg.gitee.io/plugins/slick/slick.css ">
  
  <link rel="stylesheet" href="https://bihaiorg.gitee.io/plugins/themify-icons/themify-icons.css ">
  
    
  
        <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
        <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.14.0/css/all.css">
       
       
       
        <link rel="stylesheet" href="https://bihaiorg.gitee.io/css/styleFluid.min.css" media="screen">
        
                


  
  <!-- Main Stylesheet -->
  
  <link rel="stylesheet" href="https://bihaiorg.gitee.io/css/style.min.css" media="screen">
  
         
  <link href="/css/custom.css" rel="stylesheet">
  
  <link href="/css/animate.css" rel="stylesheet">
  
  

  
  
  
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  <meta name="Description" content="Discover what the Hugo - LoveIt theme is all about and the core-concepts behind it."><meta property="og:title" content="微软纸牌合集资源文件研究" />
<meta property="og:description" content="Discover what the Hugo - LoveIt theme is all about and the core-concepts behind it." />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://bihaiorg.gitee.io/microsoft-solitaire/" />
<meta property="og:image" content="https://bihaiorg.gitee.io/microsoft-solitaire/featured-image.jpg"/>
<meta property="article:published_time" content="2020-08-19T10:00:47+08:00" />
<meta property="article:modified_time" content="2020-08-19T10:00:47+08:00" /><meta property="og:site_name" content="bihai.org-碧海奥格" />
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="https://bihaiorg.gitee.io/microsoft-solitaire/featured-image.jpg"/>
<meta name="twitter:title" content="微软纸牌合集资源文件研究"/>
<meta name="twitter:description" content="Discover what the Hugo - LoveIt theme is all about and the core-concepts behind it."/>
<meta name="application-name" content="LoveIt">
<meta name="apple-mobile-web-app-title" content="LoveIt"><meta name="theme-color" content="#ffffff"><meta name="msapplication-TileColor" content="#da532c"><link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
        <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
        <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"><link rel="manifest" href="/site.webmanifest"><link rel="canonical" href="https://bihaiorg.gitee.io/microsoft-solitaire/" /><link rel="prev" href="https://bihaiorg.gitee.io/about/" /><link rel="next" href="https://bihaiorg.gitee.io/sangoexplorer/" /><link rel="stylesheet" href="/lib/normalize/normalize.min.css"><link rel="stylesheet" href="css/style.scss"><link rel="stylesheet" href="/lib/fontawesome-free/all.min.css"><link rel="stylesheet" href="/lib/animate/animate.min.css"><script type="application/ld+json">
    {
        "@context": "http://schema.org",
        "@type": "BlogPosting",
        "headline": "微软纸牌合集资源文件研究",
        "inLanguage": "zh-CN",
        "mainEntityOfPage": {
            "@type": "WebPage",
            "@id": "https:\/\/bihaiorg.gitee.io\/microsoft-solitaire\/"
        },"image": [{
                            "@type": "ImageObject",
                            "url": "https:\/\/bihaiorg.gitee.io\/microsoft-solitaire\/featured-image.jpg",
                            "width":  1600 ,
                            "height":  840 
                        }],"genre": "featured","keywords": "installation, configuration","wordcount":  839 ,
        "url": "https:\/\/bihaiorg.gitee.io\/microsoft-solitaire\/","datePublished": "2020-08-19T10:00:47+08:00","dateModified": "2020-08-19T10:00:47+08:00","license": "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.","publisher": {
            "@type": "Organization",
            "name": "bihai"},"author": {
                "@type": "Person",
                "name": "bihai"
            },"description": "Discover what the Hugo - LoveIt theme is all about and the core-concepts behind it."
    }
    </script></head>
    <body header-desktop="fixed" header-mobile="auto"><script type="text/javascript">  if  (window.localStorage && localStorage.getItem('theme'))document.body.setAttribute('theme', localStorage.getItem('theme'));else ( window.localStorage && localStorage.getItem('theme') ? localStorage.getItem('theme') === 'dark' : ('auto' === 'auto' ? window.matchMedia('(prefers-color-scheme: dark)').matches : 'auto' === 'dark')) && document.body.setAttribute('theme', 'blue');</script>
        


        <div id="mask"></div><div class="wrapper" ><header class="desktop" id="header-desktop">
	
    <div class="header-wrapper">
        <div class="header-title">
            <a href="/" title="bihai.org-碧海奥格">bihai.org-碧海奥格</a>
        </div>
        <div class="menu">
            <div class="menu-inner"><a class="menu-item" href="/posts/"> 所有文章 </a><a class="menu-item" href="/tags/"> 标签 </a><a class="menu-item" href="/categories/"> 分类 </a><a class="menu-item" href="/categories/documentation/"> 文档 </a><a class="menu-item" href="/about/"> 关于 </a><a class="menu-item" href="https://github.com/bihai/bihai.org" title="GitHub" rel="noopener noreffer" target="_blank"><i class='fab fa-github fa-fw'></i>  </a><span class="menu-item delimiter"></span><a href="javascript:void(0);" class="menu-item language" title="选择语言">简体中文<i class="fas fa-chevron-right fa-fw"></i>
                        <select class="language-select" id="language-select-desktop" onchange="location = this.value;"><option value="/en/microsoft-solitaire/">English</option><option value="/microsoft-solitaire/" selected>简体中文</option></select>
                    </a><span class="menu-item search" id="search-desktop">
                        <input type="text" placeholder="搜索文章标题或内容..." id="search-input-desktop">
                        <a href="javascript:void(0);" class="search-button search-toggle" id="search-toggle-desktop" title="搜索">
                            <i class="fas fa-search fa-fw"></i>
                        </a>
                        <a href="javascript:void(0);" class="search-button search-clear" id="search-clear-desktop" title="清空">
                            <i class="fas fa-times-circle fa-fw"></i>
                        </a>
                        <span class="search-button search-loading" id="search-loading-desktop">
                            <i class="fas fa-spinner fa-fw fa-spin"></i>
                        </span>
                    </span><a href="javascript:void(0);" class="menu-item theme-switch" title="切换主题">
                    <i class="fas fa-adjust fa-fw"></i>
                </a>
            </div>
        </div>
    </div>
</header><header class="mobile" id="header-mobile">
    <div class="header-container">
        <div class="header-wrapper  pr-0">
            <div class="header-title">
                <a href="/" title="bihai.org-碧海奥格">bihai.org-碧海奥格</a>
            </div>
            
            <div class="menu-toggle" id="menu-toggle-mobile">
                <span></span><span></span><span></span>
            </div>
            <a href="javascript:void(0);" class="menu-item theme-switch" title="切换主题">
                <i class="fas fa-adjust fa-fw"></i>
            </a>
            
        </div>
        <div class="menu" id="menu-mobile"><div class="search-wrapper">
                    <div class="search mobile" id="search-mobile">
                        <input type="text" placeholder="搜索文章标题或内容..." id="search-input-mobile">
                        <a href="javascript:void(0);" class="search-button search-toggle" id="search-toggle-mobile" title="搜索">
                            <i class="fas fa-search fa-fw"></i>
                        </a>
                        <a href="javascript:void(0);" class="search-button search-clear" id="search-clear-mobile" title="清空">
                            <i class="fas fa-times-circle fa-fw"></i>
                        </a>
                        <span class="search-button search-loading" id="search-loading-mobile">
                            <i class="fas fa-spinner fa-fw fa-spin"></i>
                        </span>
                    </div>
                    <a href="javascript:void(0);" class="search-cancel" id="search-cancel-mobile">
                        取消
                    </a>
                </div><a class="menu-item" href="/posts/" title="">所有文章</a><a class="menu-item" href="/tags/" title="">标签</a><a class="menu-item" href="/categories/" title="">分类</a><a class="menu-item" href="/categories/documentation/" title="">文档</a><a class="menu-item" href="/about/" title="">关于</a><a class="menu-item" href="https://github.com/bihai/bihai.org" title="GitHub" rel="noopener noreffer" target="_blank"><i class='fab fa-github fa-fw'></i></a><a href="javascript:void(0);" class="menu-item" title="选择语言">简体中文<i class="fas fa-chevron-right fa-fw"></i>
                    <select class="language-select" onchange="location = this.value;"><option value="/en/microsoft-solitaire/">English</option><option value="/microsoft-solitaire/" selected>简体中文</option></select>
                </a></div>
    </div>
</header>
<div class="search-dropdown desktop">
    <div id="search-dropdown-desktop"></div>
</div>
<div class="search-dropdown mobile">
    <div id="search-dropdown-mobile"></div>
</div>
<main class="main" >        
                <div class="container1 m-0 p-0"  style="z-index:9;;"><div class="page single special"><h1 class="single-title animated pulse faster">微软纸牌合集资源文件研究</h1><div class="content" id="content"><h2 id="成功反编译微软纸牌集合资源文件">成功反编译&quot;微软纸牌集合&quot;资源文件</h2>
<p>1989年，微软推出了Windows 2.0图像操作系统，微软纸牌合集(Microsoft Solitaire Collection)开始随windows捆绑，成了大众休闲放松的利器。后来微软将它单独拿出来发扬光大，做出了跨平台的游戏，还是值得一玩，可惜限制比较多，于是乎最近花了一天时间，终于成功反编译了“微软纸牌集合（Microsoft Solitaire Collection）”的资源文件，以及图片集索引逆向转为跨平台json/atlas/texturePacker文件格式，可以直接用于跨平台软件制作，包括网页版，只是作为研究而已，没什么实际意义。至此，微软全平台游戏终于全部解包完毕，包括solitaire, minesweeper等等，还是很有借鉴意义。
<img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://img-blog.csdnimg.cn/20200819181552183.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy,size_16,color_FFFFFF,t_70#pic_center"
        data-srcset="https://img-blog.csdnimg.cn/20200819181552183.jpg?x-oss-process=image/watermark%2ctype_ZmFuZ3poZW5naGVpdGk%2cshadow_10%2ctext_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy%2csize_16%2ccolor_FFFFFF%2ct_70#pic_center, https://img-blog.csdnimg.cn/20200819181552183.jpg?x-oss-process=image/watermark%2ctype_ZmFuZ3poZW5naGVpdGk%2cshadow_10%2ctext_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy%2csize_16%2ccolor_FFFFFF%2ct_70#pic_center 1.5x, https://img-blog.csdnimg.cn/20200819181552183.jpg?x-oss-process=image/watermark%2ctype_ZmFuZ3poZW5naGVpdGk%2cshadow_10%2ctext_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy%2csize_16%2ccolor_FFFFFF%2ct_70#pic_center 2x"
        data-sizes="auto"
        alt="https://img-blog.csdnimg.cn/20200819181552183.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy,size_16,color_FFFFFF,t_70#pic_center"
        title="在这里插入图片描述" />
<img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://img-blog.csdnimg.cn/2020081918155297.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy,size_16,color_FFFFFF,t_70#pic_center"
        data-srcset="https://img-blog.csdnimg.cn/2020081918155297.jpg?x-oss-process=image/watermark%2ctype_ZmFuZ3poZW5naGVpdGk%2cshadow_10%2ctext_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy%2csize_16%2ccolor_FFFFFF%2ct_70#pic_center, https://img-blog.csdnimg.cn/2020081918155297.jpg?x-oss-process=image/watermark%2ctype_ZmFuZ3poZW5naGVpdGk%2cshadow_10%2ctext_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy%2csize_16%2ccolor_FFFFFF%2ct_70#pic_center 1.5x, https://img-blog.csdnimg.cn/2020081918155297.jpg?x-oss-process=image/watermark%2ctype_ZmFuZ3poZW5naGVpdGk%2cshadow_10%2ctext_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy%2csize_16%2ccolor_FFFFFF%2ct_70#pic_center 2x"
        data-sizes="auto"
        alt="https://img-blog.csdnimg.cn/2020081918155297.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy,size_16,color_FFFFFF,t_70#pic_center"
        title="在这里插入图片描述" />
<img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://img-blog.csdnimg.cn/2020081918155284.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy,size_16,color_FFFFFF,t_70#pic_center"
        data-srcset="https://img-blog.csdnimg.cn/2020081918155284.jpg?x-oss-process=image/watermark%2ctype_ZmFuZ3poZW5naGVpdGk%2cshadow_10%2ctext_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy%2csize_16%2ccolor_FFFFFF%2ct_70#pic_center, https://img-blog.csdnimg.cn/2020081918155284.jpg?x-oss-process=image/watermark%2ctype_ZmFuZ3poZW5naGVpdGk%2cshadow_10%2ctext_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy%2csize_16%2ccolor_FFFFFF%2ct_70#pic_center 1.5x, https://img-blog.csdnimg.cn/2020081918155284.jpg?x-oss-process=image/watermark%2ctype_ZmFuZ3poZW5naGVpdGk%2cshadow_10%2ctext_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy%2csize_16%2ccolor_FFFFFF%2ct_70#pic_center 2x"
        data-sizes="auto"
        alt="https://img-blog.csdnimg.cn/2020081918155284.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RocmlsbGVy,size_16,color_FFFFFF,t_70#pic_center"
        title="在这里插入图片描述" /></p>
<h2 id="文件格式说明">文件格式说明</h2>
<p>微软纸牌采用BR****I算法的zip压缩文件格式作为资源文件包，图集atlasIndex索引是加密（或者说是编译）的二进制文件，不知道是不是笔者孤陋寡闻，没有找到相关资料，只好用ultralEdit/vb6/vscode分析了一天，终于凑合转为JSON文件格式，好看好用多了:)。
zip文件格式应该不用多说，但是用普通的解压缩软件解不开这些.archive文件，只好又写了一个专用的解包工具，牵扯版权就不发了。
atlasIndex文件格式比较复杂，主要如下：</p>
<h3 id="1-文件头8字节">1. 文件头8字节</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span><span class="lnt">8
</span><span class="lnt">9
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-vbnet" data-lang="vbnet"><span class="c">&#39;atlas.atlasindex文件格式说明
</span><span class="c">&#39;atlas.atlasindex file format specification
</span><span class="c">&#39;Offset      0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F
</span><span class="c">&#39;00000000   68 2E 00 00 B4 30 00 00  00 00 00 00 00 00 00 00   h.  ?
</span><span class="c"></span><span class="n">Type</span> <span class="n">TAtlasHeader</span>
    <span class="n">lOffsetTable</span> <span class="ow">As</span> <span class="kt">Long</span> <span class="c">&#39;&amp;h2e68
</span><span class="c"></span>    <span class="n">lOffsetNamelist</span> <span class="ow">As</span> <span class="kt">Long</span> <span class="c">&#39;&amp;h30b4
</span><span class="c"></span><span class="k">End</span> <span class="n">Type</span> <span class="c">&#39;TAtlasHeader
</span><span class="c"></span>
</code></pre></td></tr></table>
</div>
</div><p>第一个长整数&amp;h2e68是索引表的偏移量位置，第二个整数&amp;h30b4是名称列表。</p>
<h3 id="2-h70偏移开始表结构的索引各种跳转实在是一言难尽啊抽空整理一下vb6源代码估计感兴趣的也不多">2. &amp;h70偏移开始表结构的索引，各种跳转，实在是一言难尽啊，抽空整理一下VB6源代码，估计感兴趣的也不多。</h3>
<p>以上抛砖引玉，主要还是知识浅薄，孤陋寡闻，不知道是不是已经有人做了，纯粹业余兴趣，如果侵犯版权或者有其他错误请批评指正。</p>
<p>Welcome to <a href="https://bihai.org">https://bihai.org</a>!</p></div><div id="comments"><div id="utterances"></div><noscript>
                Please enable JavaScript to view the comments powered by <a href="https://utteranc.es/">Utterances</a>.
            </noscript></div></div></div>
            </main><footer class="footer">
        <div class="footer-container">
            
        	        <div class="footer-line">
        		
      </div><div class="footer-line">由 <a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo 0.78.2">Hugo</a> 强力驱动 | 主题 - <a href="https://github.com/bihai/bihai.org" target="_blank" rel="noopener noreffer" title="bihai.org 0.2.10"><i class="far fa-kiss-wink-heart fa-fw"></i> bihai.org</a>
                </div><div class="footer-line"><i class="far fa-copyright fa-fw"></i><span itemprop="copyrightYear">1999 - 2020</span><span class="author" itemprop="copyrightHolder">&nbsp;<a href="https://bihai.org" target="_blank">bihai</a></span>&nbsp;|&nbsp;<span class="license"><a rel="license external nofollow noopener noreffer" href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">CC BY-NC 4.0</a></span><span class="icp-splitter">&nbsp;|&nbsp;</span><br class="icp-br"/>
                    <span class="icp">鲁ICP备18009123号</span></div>
        </div>
        <div class="footer-line"><br /><br /><br /><br /><br /></div>
    </footer></div>

        <div id="fixed-buttons"><a href="#" id="back-to-top" class="fixed-button" title="回到顶部" style=";">
                <i class="fas fa-arrow-up fa-fw"></i>
            </a><a href="#" id="view-comments" class="fixed-button" title="查看评论">
                <i class="fas fa-comment fa-fw"></i>
            </a>
        </div><script type="text/javascript" src="/lib/smooth-scroll/smooth-scroll.min.js"></script><script type="text/javascript" src="/lib/autocomplete/autocomplete.min.js"></script><script type="text/javascript" src="/lib/algoliasearch/algoliasearch-lite.umd.min.js"></script><script type="text/javascript" src="/lib/lazysizes/lazysizes.min.js"></script><script type="text/javascript" src="/lib/clipboard/clipboard.min.js"></script><script type="text/javascript">window.config={"code":{"copyTitle":"复制到剪贴板","maxShownLines":10},"comment":{"utterances":{"blueTheme":"dark-blue","darkTheme":"photon-dark","issueTerm":"pathname","label":"","lightTheme":"github-light","repo":"bihai/bihaiorg_hugoblogtalks"}},"search":{"algoliaAppID":"PASDMWALPK","algoliaIndex":"index.zh-cn","algoliaSearchKey":"b42948e51daaa93df92381c8e2ac0f93","highlightTag":"em","maxResultLength":10,"noResultsFound":"没有找到结果","snippetLength":50,"type":"algolia"}};</script><script type="text/javascript" src="/js/theme.min.js"></script></body>
    <!-- Main Script -->
    
    <script src="https://bihaiorg.gitee.io/js/scriptFluid.min.js"></script>

    
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=3.0, user-scalable=no">
    </html>
